package com.liaozl.sca.account.feign.fallback;

import com.liaozl.sca.account.dto.AccountDTO;
import com.liaozl.sca.account.feign.AccountFeign;
import com.liaozl.sca.common.dto.Result;
import com.liaozl.sca.common.enums.ResultCodeEnum;
import lombok.extern.slf4j.Slf4j;

/**
 * @Description:
 * @version: v1.0.0
 * @author: liaozuliang
 * @date: 2021/9/18 14:44
 */
@Slf4j
public class AccountFeignFallback implements AccountFeign {

    @Override
    public Result<Boolean> insert(AccountDTO accountDTO) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }

    @Override
    public Result<Boolean> delete(Long userId) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }

    @Override
    public Result<Boolean> delete2(Long userId) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }

    @Override
    public Result<Boolean> update(AccountDTO accountDTO) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }

    @Override
    public Result<AccountDTO> getByUserId(Long userId) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }

    @Override
    public Result<AccountDTO> getByUserId2(Long userId) {
        return Result.failed(ResultCodeEnum.FEIGN_FALLBACK);
    }
}
